package main

import (
	"bufio"
	"fmt"
	"os"
)

//查找重复的行
func main() {
	fmt.Println("start")
	input := bufio.NewScanner(os.Stdin)
	counts := make(map[string]int)
	for input.Scan() {
		fmt.Println("input = ", input.Text())
		counts[input.Text()]++
		if input.Text() == "t" {
			break
		}
	}

	for key, value := range counts {
		if value > 1 {
			fmt.Println("input = ", key)
		}
	}
}
